package com.lyh.system.service;

import com.lyh.common.core.domain.AjaxResult;
import com.lyh.system.domain.Order;
import com.lyh.system.domain.req.WxPrepareReq;
import com.lyh.system.domain.req.ZfbCashAdvanceReq;
import com.lyh.system.domain.req.ZfbPayCommonReq;
import com.lyh.system.domain.resp.WxPayInfoResp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface IPayService {

    String getPrepayId(WxPrepareReq req);


    AjaxResult wehcatPayCallback(HttpServletRequest request,
                                 HttpServletResponse response);



    /**
     * 支付宝开放平台接收 request请求对象后
     * @return
     */
    String tradeCreate();

    String tradeNotify(Map<String, String> params);


    String zfbPay(Order order);

    String zfbPayCommom(ZfbPayCommonReq orderCommom);


    String zfbRefund(Order order);

    boolean zfbCashAdvance(ZfbCashAdvanceReq req);


}
